package com.qa.service;

import com.github.pagehelper.PageInfo;
import com.qa.common.ServerResponse;
import com.qa.pojo.Comment;
import com.qa.pojo.User;

import java.util.List;

public interface ICommentService {

    List<Comment> getByArticelId(Integer id);

    List<Comment> getByCommentId(Integer id);

    ServerResponse addComment(Integer commentId, String comment, User user, Integer category);

    ServerResponse addCommentCategory(String comment, User user, Integer articleId);

    PageInfo<Comment> getByComment(String comment, Integer pageNum, Integer pageSize);

    Comment getById(Integer commentId);

    ServerResponse updateStatus(Comment comment);

    int getCount(String beginTime, String endTime);
}
